package com.khshop.pojo;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 订单
 * </p>
 *
 * @author zhaoyang
 * @since 2020-10-15
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("w_order")
@ApiModel(value="Order对象", description="订单")
public class Order implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "订单号")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "商品")
    private Long prodid;

    @ApiModelProperty(value = "用户号")
    private Long userid;

    @ApiModelProperty(value = "发货地址")
    private String addr;

    @ApiModelProperty(value = "创建时间")
    private Date modifydate;

    @ApiModelProperty(value = "下单时间")
    private Date createdate;

    @ApiModelProperty(value = "付款时间")
    private Date paydate;

    @ApiModelProperty(value = "付款方式")
    @TableField("payType")
    private String payType;

    @ApiModelProperty(value = "购买量")
    private Integer num;

    @ApiModelProperty(value = "订单状态(0:关闭,1:下单,2:已付款,3:已发货,4:签收,5:确认)")
    private Integer status;

    @ApiModelProperty(value = "价格")
    private Float price;

    @ApiModelProperty(value = "物流单号")
    private String logisticsno;

    @ApiModelProperty(value = "是否已评价")
    private Boolean iscomment;


}
